/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "串端口号", TableName = "Comport")]
    public partial class Comport : BaseEntity
    {
        /// <summary>
        ///
        /// </summary>
        [Key]
        [Display(Name = "ComPortID")]
        [Column(TypeName = "bigint")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public long ComPortID { get; set; }

        /// <summary>
        ///设备名称
        /// </summary>
        [Display(Name = "设备名称")]
        [MaxLength(50)]
        [Column(TypeName = "varchar(50)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string AppName { get; set; }

        /// <summary>
        ///0力臂 1电批 2IO 3锁
        /// </summary>
        [Display(Name = "端口类型")]
        [MaxLength(50)]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int PortType { get; set; }

        /// <summary>
        ///端口号 IP
        /// </summary>
        [Display(Name = "串口号/IP")]
        [MaxLength(50)]
        [Column(TypeName = "varchar(50)")]
        [Editable(true)]
        public string PortName { get; set; }

        /// <summary>
        ///波特率 端口
        /// </summary>
        [Display(Name = "波特率/端口")]
        [MaxLength(50)]
        [Column(TypeName = "varchar(50)")]
        [Editable(true)]
        public string BaudRate { get; set; }

        /// <summary>
        ///锁MAC
        /// </summary>
        [Display(Name = "锁MAC")]
        [MaxLength(50)]
        [Column(TypeName = "varchar(50)")]
        [Editable(true)]
        public string Smac { get; set; }
    }
}